package com.qfjy.project.meeting;

import com.qfjy.common.util.result.ResultCode;
import com.qfjy.common.util.result.ResultJson;
import com.qfjy.entity.po.MeetingType;
import com.qfjy.service.MeetingTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@Slf4j
@RequestMapping("/meetingType")
public class MeetingTypeController {
    @Autowired
    private MeetingTypeService meetingTypeService;

    @GetMapping("/list")
    @ResponseBody
    public ResultJson list() {

        List<MeetingType> list = meetingTypeService.selectMeetingTypeListByStatus();
        log.info("查询会议课题类别数据:{}",list);
        return new ResultJson(list, ResultCode.SUCCESS);
    }



}
